package com.gitee.huanminabc.jlambda_sql;

import lombok.Getter;

@Getter
public enum SqlKeyword {

    SELECT("SELECT", "查询"),
    FROM("FROM", "表"),
    WHERE("WHERE", "条件"),
    GROUP_BY("GROUP BY", "分组"),
    HAVING("HAVING", "分组条件"),
    ORDER_BY("ORDER BY", "排序"),
    LIMIT("LIMIT", "限制"),
    OFFSET("OFFSET", "偏移"),
    INSERT("INSERT", "插入"),
    UPDATE("UPDATE", "更新"),
    DELETE("DELETE", "删除"),
    SET("SET", "设置"),
    VALUES("VALUES", "值"),
    JOIN("JOIN", "连接"),
    LEFT_JOIN("LEFT JOIN", "左连接"),
    RIGHT_JOIN("RIGHT JOIN", "右连接"),
    INNER_JOIN("INNER JOIN", "内连接"),
    ON("ON", "关联条件"),
    ;

    private final String type;
    private final String desc;
    SqlKeyword(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

}
